Auto merge of #3604 - froydnj:rich-version-info, r=alexcrichton
authorbors <bors@rust-lang.org>
Sun, 29 Jan 2017 02:06:47 +0000 (02:06 +0000)
committerbors <bors@rust-lang.org>
Sun, 29 Jan 2017 02:06:47 +0000 (02:06 +0000)
commit8d5383866e387a5bf88e25181d23c1af67cb3abe
tree4c1e12322770f171e6517d7331c1149baa510e7e
parent51ae993dc0afaa7dc62945df30ac49088c47e4a4
parent50e1c1a5bf3f1a009c2da2b37babad835f6b766c
Auto merge of #3604 - froydnj:rich-version-info, r=alexcrichton

implement `cargo --version --verbose`

As suggested in #3584.  This is a bit underwhelming, and I'm unsure if some of the complexity in froydnj/cargo@775c900 is really warranted, but this series gets the job done.  Sample output when building with `configure` and `make`:

```
froydnj@hawkeye:~/src/cargo.git$ target/x86_64-unknown-linux-gnu/release/cargo --version
cargo-0.17.0-dev (ae4a4d8 2017-01-27)
froydnj@hawkeye:~/src/cargo.git$ target/x86_64-unknown-linux-gnu/release/cargo --version --verbose
cargo-0.17.0-dev (ae4a4d8 2017-01-27)
release: 0.17.0
commit-hash: ae4a4d8fc55bf7eca3d974f953dc61729e4a40db
commit-date: 2017-01-27
```
src/cargo/lib.rs